package com.example.ioc.service.impl;


import com.example.ioc.dao.UserDao;
import com.example.ioc.service.UserService2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService2Impl implements UserService2 {

    @Autowired
    private UserDao userDao;

    @Override
    public void getUserName() {
        System.out.println(userDao);
        userDao.getUserName();
    }
}
